package com.xjust.controller.registerDepartMent;

import com.xjust.pojo.Result;
import com.xjust.service.RegistLevelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/registLevels")
public class RegistLevelController {
    @Autowired
    RegistLevelService registLevelService;
    //获取号别
    @GetMapping("/getRegistLevel")
    public Result getRegistLevel(){
        List<Map<String, Object>> list = registLevelService.getRegistLevel();
        return Result.success(list);
    }
}
